package org.zhs.decorate.demo1;

/**
 * Author: zhs
 * Date: 07/05/2024 18:05
 * Description: 服饰类
 */
public class Finery implements ICharacter{

    protected ICharacter component;

    public void decorate(ICharacter component){
        this.component = component;
    }

    public void show() {
        if(component != null){
            this.component.show();
        }
    }
}
